<template>
  <div class="robot" v-if="showRobot">
    <img src="../assets/jiqiren.png" alt="">
    <div class="formBox">
      <svg @click="showRobot = !showRobot" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg" width="16"
        height="16">
        <path
          d="M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z"
          fill="currentColor" fill-rule="evenodd" clip-rule="evenodd"></path>
      </svg>

      <div class="title">
        {{ $t('robot.robot1') }}
      </div>
      <div class="text">
        {{ $t('robot.robot2') }}
      </div>
      <div class="inputs">
        <input type="text" placeholder="hello@civitai.com">
        <span>{{ $t('robot.robot3') }}</span>
      </div>
    </div>

  </div>
</template>

<script>
export default {
  name: "robot",
  data() {
    return {
      showRobot: true
    };
  },
  mounted() { },
  methods: {

  },
};
</script>

<style lang="scss" scoped>
.robot {
  position: fixed;
  z-index: 200;
  bottom: 10px;
  right: 10px;
  width: 400px;


  img {
    width: 278px;
    height: auto;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
  }

  .formBox {
    display: flex;
    flex-direction: column;
    -webkit-box-align: stretch;
    align-items: stretch;
    -webkit-box-pack: start;
    justify-content: flex-start;
    gap: 13px;
    padding: 16px;
    position: relative;
    z-index: 10;
    background-color: #25262b;
    border: 1px solid #373a40;
    border-radius: 5px;
    color: #c1c2c5;
    position: relative;

    svg {
      position: absolute;
      right: 10px;
      top: 10px;
      z-index: 1999;
      color: #fff;
      cursor: pointer;

    }

    .title {
      font-size: 16px;
    }

    .text {
      font-size: 13px;
    }

    .inputs {
      display: flex;
      align-items: center;

      input {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
        height: 36px;
        -webkit-tap-highlight-color: transparent;
        line-height: 34px;
        appearance: none;
        resize: none;
        box-sizing: border-box;
        font-size: 14px;
        width: 100%;
        color: rgb(193, 194, 197);
        display: block;
        text-align: left;
        min-height: 36px;
        padding-left: 12px;
        padding-right: 36px;
        border-radius: 4px;
        border: 1px solid rgb(55, 58, 64);
        background-color: rgb(37, 38, 43);
        transition: border-color 100ms ease 0s;
      }

      span {
        padding: 0px 18px;
        appearance: none;
        text-align: left;
        text-decoration: none;
        box-sizing: border-box;
        height: 36px;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
        -webkit-tap-highlight-color: transparent;
        display: inline-block;
        width: auto;
        border-radius: 4px;
        font-weight: 600;
        position: relative;
        line-height: 1;
        font-size: 14px;
        user-select: none;
        cursor: pointer;
        border: 1px solid transparent;
        background-color: rgb(25, 113, 194);
        color: rgb(254, 254, 254);
        line-height: 36px;
        margin-left: 8px;
      }
    }
  }
}
@media screen and (max-width:768px) {
  .robot{
    width: 80%;
    img{
      width: 205px;
      bottom: 90px;
    }
  }
}
</style>
